Content starts here Mutators for Updates
This page last changed on Apr 07, 2008.

edocs Home > BEA AquaLogic Data Services Platform 3.0/3.2 Documentation > ALDSP 3.2 New Features Documentation

Mutators for Updates

In ALDSP 3.2, several new built-in XQuery functions have been added that are useful for manipulating and applying changes to XML element instances. Using these new mutator functions, it is possible to create update data service operations that take as input scalar values that represent changes to be applied to data. For example, you could create an update data service operation called updatePhoneNumber() which takes a string value containing the new phone number to be updated for a customer data service. In previous versions of ALDSP, this type of update was not possible and instead required exposing an entire service data object (SDO) instance.

From a technical perspective, ALDSP 3.2 includes a set of built-in mutator functions that you can use to create and modify XXDM instances from within XQuery and XQuery Scripting Extensions (XQSE) programs. Mutator functions accept an XXDM instance, along with parameters specifying the modification, and return the modified XXDM instance. This enables you to modify XXDM instances from within XQuery and XQSE programs without having to drop down to Java programming. ALDSP uses the Extended XQuery Data Model (XXDM), an extension of the XQuery Data Model (XDM), to represent instances of the XDM along with information about changes to the instances.

See Also

How Tos
Reference
Document generated by Confluence on Apr 28, 2008 16:19